//
//  TheMessageVC.m
//  Logistics
//
//  Created by enzhoukeji on 2018/8/9.
//  Copyright © 2018年 puyue.com. All rights reserved.
//

#import "TheMessageVC.h"
#import "MessageTVCell.h"
@interface TheMessageVC ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) UITableView * messageTV;

@end

@implementation TheMessageVC
-(UITableView *)messageTV{
    if (!_messageTV) {
        _messageTV = [[UITableView alloc]initWithFrame:CGRectMake(GTFixWidthFlaot(20),  kMainTopHeight , kMainScreen_width  - GTFixWidthFlaot(40), kMainScreen_height - GTFixHeightFlaot(37)) style:UITableViewStyleGrouped];
        _messageTV.backgroundColor = [UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:1];;
        _messageTV.showsVerticalScrollIndicator = NO;
        _messageTV.dataSource = self;
        _messageTV.delegate = self;
    }
    return _messageTV;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navTitle = @"消息";
    [self.view addSubview:self.messageTV];
    self.view.backgroundColor = [UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:1];
    // Do any additional setup after loading the view.
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 6;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    MessageTVCell *cell=[tableView dequeueReusableCellWithIdentifier:@"MessageTVCell"];
    if (!cell) {
        cell=[[MessageTVCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"MessageTVCell"];
    }
    cell.layer.cornerRadius = 4.0;
    return cell;
}
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
    return nil;
}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
    return 0.01;
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
    return nil;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return GTFixHeightFlaot(5);
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return GTFixHeightFlaot(60);
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
